
	<div class="well">
		<div class="btn-group" data-toggle="buttons-radio" name="optionsRadios">
		
		</div>
		<br>
		<form>


		<table class="table table-stripped table-hover">
			<thead>
				<tr>
					<th></th>
					<th>Gauche</th>
					<th>Tout</th>
					<th>Droite</th>
					<th>Quantit&eacute;</th>
				</tr>
			</thead>

			<tbody>

				<?php
				include_once '../modele/ToppingCategory.php';
				include_once '../modele/topping.php';
				 
					$cats = ToppingCategory::dbGetToppingCategories('');
					
					foreach($cats as $cat){
						echo '	<tr><td><h5><strong>'.$cat->getName().'</strong></h5></td>
							<td></td>
							<td></td>
							<td></td>
							<td></td></tr>';
						
						$toppings = Topping::dbGetToppings("category = '".$cat->getName()."'");
						foreach($toppings as $topping){
							$name = $topping->getName();
							echo '	<tr>
									<td class="span4">'.$name.'</td>
									<td><input type="radio" name="OR_'.$name.'" value=\'1\' class="span1"></td>
									<td><input type="radio" name="OR_'.$name.'" value=\'2\' class="span1"';
							if ($name == "Mozzarella" || $name == "Sauce aux tomates") {
								echo ' checked';
							}
							echo '></td>
									<td><input type="radio" name="OR_'.$name.'" value=\'3\' class="span1"></td>
									<td><input type="text" name="TXT_'.$name.'" value="';
							if ($name == "Mozzarella" || $name == "Sauce aux tomates") {
								echo '1';
							}
							else {
								echo '0';
							}
							echo '" class="span1"></td>
								</tr>';

						}
					}
				
				?>
			</tbody>
		<tfoot>
			<tr>
				<?php include_once "../vue/js/ajouterCustomPizzaScript.php"; ?>
				<td></td>
				<td colspan="3">
					<input type="button" name="page" class="btn btn-primary" value="Payer avec des points de Score" onclick="ajouter('Default', 'Mozzarella/1/2,Sauce aux tomates/1/2,Bacon/1/2', 'M', 'Score', 'P')" />
				</td>
				<td>
					<input type="button" name="page" class="btn btn-primary" value="Payer avec de l'argent" onclick="ajouter('Default', 'Mozzarella/1/2,Sauce aux tomates/1/2,Bacon/1/2', 'M', 'Cash', 'P')" />
				</td>
			</tr>
		</tfoot>	

		</table>
		</form>
	</div>